package 
{
	/**
	 * ...
	 * @author
	 */
	 import laya.events.Event;
	 import laya.utils.Ease;
	 import laya.utils.Handler;
	 import laya.utils.Tween;

	 import ui.GameOverUI;

	public class GameOver extends GameOverUI {
		public function GameOver(){
			this.btn_restart.on(Event.MOUSE_DOWN, this, onRestart);
		}

		private function onRestart():void {
			this.ani_restart.play(0, false);
			this.ani_restart.once(Event.COMPLETE, this, AniComplete);
		}

		private function AniComplete(): void {
			this.event("restart");
			this.close();
		}
	}

}